import request from "./request";
import getConfig from "./requestConfig";

export const fetchGet = (url, params, options) => {
  const config = getConfig(url, options);
  config.params = params;
  config.method = "get";
  return request(config);
};

export const fetchPost = (url, params, options) => {
  const config = getConfig(url, options);
  config.data = params;
  config.method = "post";
  return request(config);
};
